{if $arrImage}
	<div class="jMyCarousel">
        <ul> 
        	{foreach item=item from=$arrImage}       
            	<li>{if $arrImage|@count > 1}<a href="javascript:;" onclick="javascript:loadImg({$item.pimageid});">{/if}{image path=$item.image type=7 small=2 attr="width=\"100\" height=\"75\""}{if $arrImage|@count > 1}</a>{/if}</li>
          	{/foreach}
        </ul>
        {literal}
			<script type="text/javascript">
                $(function() {
                    var jMyCarousel = $(".jMyCarousel li").length;
                    if(jMyCarousel > 5) {
                        $(".jMyCarousel").jMyCarousel();
                    }
                });
            </script>
        {/literal}
	</div>
{/if}